<?php
declare(strict_types=1);

namespace App\Hoenix\Request;

use Mine\MineFormRequest;

/**
 * 服务人员列表验证数据类
 */
class HoenixConcubineRequest extends MineFormRequest
{
    /**
     * 公共规则
     */
    public function commonRules(): array
    {
        return [];
    }

    
    /**
     * 新增数据验证规则
     * return array
     */
    public function saveRules(): array
    {
        return [
            //处0否1是 验证
            'virgin' => 'required',
            //口0否1是 验证
            'oral_sex' => 'required',
            //套0否1是 验证
            'condom' => 'required',
            //内0否1是 验证
            'injection' => 'required',
            //文身0否1是 验证
            'tattoo' => 'required',
            //同居0否1是 验证
            'cohabitation' => 'required',
            //过夜0否1是 验证
            'make_love' => 'required',
            //可飞0否1是 验证
            'flyable' => 'required',
            //外地0否1是 验证
            'other_places' => 'required',
            //工资 验证
            'wages' => 'required',
            //次数 验证
            'wages_times' => 'required',

        ];
    }
    /**
     * 更新数据验证规则
     * return array
     */
    public function updateRules(): array
    {
        return [
            //处0否1是 验证
            'virgin' => 'required',
            //口0否1是 验证
            'oral_sex' => 'required',
            //套0否1是 验证
            'condom' => 'required',
            //内0否1是 验证
            'injection' => 'required',
            //文身0否1是 验证
            'tattoo' => 'required',
            //同居0否1是 验证
            'cohabitation' => 'required',
            //过夜0否1是 验证
            'make_love' => 'required',
            //可飞0否1是 验证
            'flyable' => 'required',
            //外地0否1是 验证
            'other_places' => 'required',
            //工资 验证
            'wages' => 'required',
            //次数 验证
            'wages_times' => 'required',

        ];
    }

    
    /**
     * 字段映射名称
     * return array
     */
    public function attributes(): array
    {
        return [
            'id' => '主键',
            'virgin' => '处0否1是',
            'oral_sex' => '口0否1是',
            'condom' => '套0否1是',
            'injection' => '内0否1是',
            'tattoo' => '文身0否1是',
            'cohabitation' => '同居0否1是',
            'make_love' => '过夜0否1是',
            'flyable' => '可飞0否1是',
            'other_places' => '外地0否1是',
            'wages' => '工资',
            'wages_times' => '次数',

        ];
    }

}